////
//// Created by ht on 16-12-19.
////
////
//// Created by ht on 16-12-16.
////
//#include <sstream>
//#include <iostream>
//#include <fstream>
//#include "gtree.h"
//#include "syntax.tab.hpp"
//extern stringstream textss;
//extern vector<Struct> structs;
//using namespace std;
//
//int offset=0;
//string get_offset() {
//    return  to_string(4*(offset++));
//}
//void reset_offset(){
//    offset=0;
//}
//static int param_offset=0;
//void asm_Stmt(GTNode* Stmt){
//
//}
//void asm_StmtList(GTNode *StmtList) {
//    GTNode *stmt = StmtList->child;
//    while (stmt) {
//        asm_Stmt(stmt);
//        stmt = stmt->sibiling->child;
//    }
//}
//void asm_extdef(GTNode* ExtDef){
//    GTNode* second_child=ExtDef->child->sibiling;
//    if(second_child->name=="FunDec"){
//        param_offset=second_child->offset;
//        textss<<second_child->child->name<<":"<<endl;
//        asm_StmtList(second_child->sibiling->child->sibiling->sibiling);
//    }
//}